Optimal. Leaf size=61 \[ -\frac{1}{2} \cot (x) \sqrt{\cot ^2(x)-1}+\frac{5}{2} \tanh ^{-1}\left (\frac{\cot (x)}{\sqrt{\cot ^2(x)-1}}\right )-2 \sqrt{2} \tanh ^{-1}\left (\frac{\sqrt{2} \cot (x)}{\sqrt{\cot ^2(x)-1}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0425351, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.6, Rules used = {3661, 416, 523, 217, 206, 377} \[ -\frac{1}{2} \cot (x) \sqrt{\cot ^2(x)-1}+\frac{5}{2} \tanh ^{-1}\left (\frac{\cot (x)}{\sqrt{\cot ^2(x)-1}}\right )-2 \sqrt{2} \tanh ^{-1}\left (\frac{\sqrt{2} \cot (x)}{\sqrt{\cot ^2(x)-1}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3661
Rule 416
Rule 523
Rule 217
Rule 206
Rule 377
Rubi steps
\begin{align*} \int \left (-1+\cot ^2(x)\right )^{3/2} \, dx &=-\operatorname{Subst}\left (\int \frac{\left (-1+x^2\right )^{3/2}}{1+x^2} \, dx,x,\cot (x)\right )\\ &=-\frac{1}{2} \cot (x) \sqrt{-1+\cot ^2(x)}-\frac{1}{2} \operatorname{Subst}\left (\int \frac{3-5 x^2}{\sqrt{-1+x^2} \left (1+x^2\right )} \, dx,x,\cot (x)\right )\\ &=-\frac{1}{2} \cot (x) \sqrt{-1+\cot ^2(x)}+\frac{5}{2} \operatorname{Subst}\left (\int \frac{1}{\sqrt{-1+x^2}} \, dx,x,\cot (x)\right )-4 \operatorname{Subst}\left (\int \frac{1}{\sqrt{-1+x^2} \left (1+x^2\right )} \, dx,x,\cot (x)\right )\\ &=-\frac{1}{2} \cot (x) \sqrt{-1+\cot ^2(x)}+\frac{5}{2} \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\frac{\cot (x)}{\sqrt{-1+\cot ^2(x)}}\right )-4 \operatorname{Subst}\left (\int \frac{1}{1-2 x^2} \, dx,x,\frac{\cot (x)}{\sqrt{-1+\cot ^2(x)}}\right )\\ &=\frac{5}{2} \tanh ^{-1}\left (\frac{\cot (x)}{\sqrt{-1+\cot ^2(x)}}\right )-2 \sqrt{2} \tanh ^{-1}\left (\frac{\sqrt{2} \cot (x)}{\sqrt{-1+\cot ^2(x)}}\right )-\frac{1}{2} \cot (x) \sqrt{-1+\cot ^2(x)}\\ \end{align*}
Mathematica [A] time = 0.123553, size = 121, normalized size = 1.98 \[ \frac{1}{2} \left (\cot ^2(x)-1\right )^{3/2} \sec ^2(2 x) \left (-\frac{1}{4} \sin (4 x)-4 \sqrt{2} \sin ^3(x) \sqrt{\cos (2 x)} \log \left (\sqrt{2} \cos (x)+\sqrt{\cos (2 x)}\right )+\sin ^3(x) \sqrt{-\cos (2 x)} \tan ^{-1}\left (\frac{\cos (x)}{\sqrt{-\cos (2 x)}}\right )+4 \sin ^3(x) \sqrt{\cos (2 x)} \tanh ^{-1}\left (\frac{\cos (x)}{\sqrt{\cos (2 x)}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.03, size = 48, normalized size = 0.8 \begin{align*} -{\frac{\cot \left ( x \right ) }{2}\sqrt{-1+ \left ( \cot \left ( x \right ) \right ) ^{2}}}+{\frac{5}{2}\ln \left ( \cot \left ( x \right ) +\sqrt{-1+ \left ( \cot \left ( x \right ) \right ) ^{2}} \right ) }-2\,{\it Artanh} \left ({\frac{\cot \left ( x \right ) \sqrt{2}}{\sqrt{-1+ \left ( \cot \left ( x \right ) \right ) ^{2}}}} \right ) \sqrt{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (\cot \left (x\right )^{2} - 1\right )}^{\frac{3}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.92736, size = 477, normalized size = 7.82 \begin{align*} \frac{4 \, \sqrt{2} \log \left (2 \, \sqrt{-\frac{\cos \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 1}} \sin \left (2 \, x\right ) - 2 \, \cos \left (2 \, x\right ) - 1\right ) \sin \left (2 \, x\right ) - 2 \, \sqrt{2} \sqrt{-\frac{\cos \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 1}}{\left (\cos \left (2 \, x\right ) + 1\right )} + 5 \, \log \left (\frac{\sqrt{2} \sqrt{-\frac{\cos \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 1}} \sin \left (2 \, x\right ) + \cos \left (2 \, x\right ) + 1}{\cos \left (2 \, x\right ) + 1}\right ) \sin \left (2 \, x\right ) - 5 \, \log \left (\frac{\sqrt{2} \sqrt{-\frac{\cos \left (2 \, x\right )}{\cos \left (2 \, x\right ) - 1}} \sin \left (2 \, x\right ) - \cos \left (2 \, x\right ) - 1}{\cos \left (2 \, x\right ) + 1}\right ) \sin \left (2 \, x\right )}{4 \, \sin \left (2 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (\cot ^{2}{\left (x \right )} - 1\right )^{\frac{3}{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 2.48973, size = 242, normalized size = 3.97 \begin{align*} \frac{1}{4} \,{\left (4 \, \sqrt{2} \log \left ({\left (\sqrt{2} \cos \left (x\right ) - \sqrt{2 \, \cos \left (x\right )^{2} - 1}\right )}^{2}\right ) - \frac{4 \, \sqrt{2}{\left (3 \,{\left (\sqrt{2} \cos \left (x\right ) - \sqrt{2 \, \cos \left (x\right )^{2} - 1}\right )}^{2} - 1\right )}}{{\left (\sqrt{2} \cos \left (x\right ) - \sqrt{2 \, \cos \left (x\right )^{2} - 1}\right )}^{4} - 6 \,{\left (\sqrt{2} \cos \left (x\right ) - \sqrt{2 \, \cos \left (x\right )^{2} - 1}\right )}^{2} + 1} + 5 \, \log \left (\frac{{\left | 2 \,{\left (\sqrt{2} \cos \left (x\right ) - \sqrt{2 \, \cos \left (x\right )^{2} - 1}\right )}^{2} - 4 \, \sqrt{2} - 6 \right |}}{{\left | 2 \,{\left (\sqrt{2} \cos \left (x\right ) - \sqrt{2 \, \cos \left (x\right )^{2} - 1}\right )}^{2} + 4 \, \sqrt{2} - 6 \right |}}\right )\right )} \mathrm{sgn}\left (\sin \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]